<template>
  <el-row style="margin: 10%;height: 500px;line-height: 50px;">
    <el-col>
      <el-radio-group v-model="type">
        <el-radio :label="1">shp</el-radio>
        <el-radio :label="2">obj</el-radio>
        <el-radio :label="3">dem</el-radio>
        <el-radio :label="4">osgb</el-radio>
      </el-radio-group>
    </el-col>
    <el-col>
      <el-input style="width: 25%" v-model="file" type="file" placeholder="请输入内容"></el-input>
    </el-col>
    <el-button type="primary" size="small" @click="publicService()">发布数据服务</el-button>
  </el-row>
</template>

<script>

import axios from 'axios'

export default {
  name: "index",
  data() {
    return {
      type: 1,
      file: '',
    }
  },
  methods: {

    //发布数据服务方法
    publicService(){

      //登录EV
      //http://192.168.0.126:8088/earthview/manager/auth/users/login
      axios.post("http://10.255.126.154:8088/earthview/manager/auth/users/login",{
        username: "admin", //用户名
        password: "I1Lqv1C%2Fc2RTip3PKVnOCLyyXEW9B58ygL0mJCDUc%2Bm2TMPz33afuO2kNtm%2FyvqeNPLjOICcI5NtZ%2BQxOsWIsQ%3D%3D", //密码
        // address: "http:%2F%2F192.168.0.126:8088", //地址
        // address: "http:%2F%2F192.168.0.130:8088", //地址
        address: "http:%2F%2F10.255.126.154:8088", //地址
      }).then(res=>{
        console.log(res.data);
      });

      /*axios.post("http://192.168.0.130:8899/plott/addPlott",{
        id: "1222222",
        type: "2",
        plott: "5154215",
        plottDataId: "3",
        decide: "1",
      }).then(res=>{
        console.log(res.data);
      });*/

      /*axios.get("http://192.168.0.130:8899/plott/getPlottAll/3").then(res=>{
        console.log(res.data);
      });*/

    }

  },
}
</script>

<style scoped>

</style>
